//
//  TTSCustomNavigation.h
//  TTSVideo
//
//  Created by chenHR on 16/2/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TTSCustomNavigationDelegate <NSObject>

/**
 *  用于得到当前点击的title序号 默认序号从1开始
 *
 *  @param titleNumber title序号
 */
- (void)getPresentTitleNumber:(NSInteger)titleNumber;


@end

@interface TTSCustomNavigation : UIView

/**
 *  标题数组
 */
@property(nonatomic, retain)NSArray *titleArray;

/**
 *  标题点击颜色
 */
@property(nonatomic, retain)UIColor *titleSelectedColor;

/**
 *  标题颜色
 */
@property(nonatomic, retain)UIColor *titleColor;

/**
 *  下方线的颜色
 */
@property(nonatomic, retain)UIColor *lineColor;

/**
 *  字体
 */
@property(nonatomic, assign)CGFloat sizeOfFont;

/**
 *  对外接口, 用于外界(例如滚动视图滚动)对当前标题的变化
 *
 *  @param value 传入的控制值, 对应上方的标题 传入从1开始到最后一个标题的序号即可.
 */
- (void)changeTitleByValue:(NSInteger)value;

//初始化
- (instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray titleColor:(UIColor *)titleColor titleSelectedColor:(UIColor *)titleSelectedColor lineColor:(UIColor *)lineColor sizeOfFont:(CGFloat)size;

+ (TTSCustomNavigation *)ChangeTitleAnimationWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray titleColor:(UIColor *)titleColor titleSelectedColor:(UIColor *)titleSelectedColor lineColor:(UIColor *)lineColor sizeOfFont:(CGFloat)size;



@property (nonatomic, assign) id<TTSCustomNavigationDelegate>delegate;






@end
